- firm_detail ||= @sales_firm.firm_detail
.panel.panel-default
  .panel-heading
    .panel-title
      |工商信息
      = link_to_dialog '编辑', detail_edit_sales_firms_path(id: firm_detail,firm_id: @sales_firm.id),
              class: 'btn btn-xs btn-info push-10-l', style: 'color:white'
      .pull-right
        = expand_body_button
  .panel-body
    - if firm_detail
      table.table.table-bordered
        tr
          td.bg-gray-lighter style='width:100px' 法人
          td= firm_detail.legal_person
          td.bg-gray-lighter style='width:100px' 注册资金
          td= firm_detail.register_money_info
          td.bg-gray-lighter style='width:100px' 注册时间
          td= firm_detail.register_time.format_date(:mon) rescue ''
          td.bg-gray-lighter style='width:100px' 行业
          td= firm_detail.business_type
        tr
          td.bg-gray-lighter 经营范围
          td colspan=3 = firm_detail.business_area
          td.bg-gray-lighter 备注
          td colspan=3 = firm_detail.notes
    - else
      | 尚无工商详细信息